package com.neusoft.demo.comment;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class ActivityMQTopicConsumer {
    @JmsListener(destination = "myTopic",containerFactory = "jmsListenerContainerTopic")
    public void receiveQueue(String msg){
        System.out.println("myTopic接收到消息："+msg);
    }

}
